﻿@{
    Layout = null;
    var plugName = @brand.admin.cyt369.com.Areas.BrandAdmin.Models.PlugName.Name;
    var tableName = PageViewModel.PageTableID(this, plugName);
    var reviewResultFmtFun = PageViewModel.PageFunctionName(this, "AuditID_fmt", plugName);
}
<script type="text/javascript">
    function @(reviewResultFmtFun)(v, r, i) {
        switch (v) {
            case -2:
                return "未提交审核";
            case 1:
                return "<span style='color:green'>通过审核</span>";
            case -1:
                return "<span style='color:red'>未通过审核</span>";
            case 0:
                return "等待审核";
        }
    }
</script>
<table id="@tableName" class="easyui-datagrid" style="width:100%;" rownumbers="true" fit="true" pagination="false"
       data-options="striped:true,border:false,singleSelect:true,url:'~/@plugName/Brand/GetBrandReviewsByBrandID/@ViewBag.brandId',method:'get',fitColumns:true">
    <thead>
        <tr>
            <th data-options="field:'ReviewResult',align:'center',formatter:@reviewResultFmtFun" width="80">审核状态</th>
            <th data-options="field:'ReviewDate',align:'center',formatter:$.DateTimeFmt" width="150">审核时间</th>
            <th data-options="field:'ReviewerName'" width="100">审核人</th>
            <th data-options="field:'ReviewRemark'" width="250">审核内容</th>
        </tr>
    </thead>
</table>
